import pygame
from sys import exit
import random
import math
vect = pygame.math.Vector2
FPS = 60
#define sprite groups. Do this before creating sprites

herogroup = pygame.sprite.Group()
herobulletgroup = pygame.sprite.Group()
selectgroup = pygame.sprite.Group()
supplygroup = pygame.sprite.Group()
enemygroup = pygame.sprite.Group()

# only the allgroup draws the sprite, so i use LayeredUpdates() instead Group()
# more sophisticated, can draw sprites in layers
allgroup = pygame.sprite.LayeredUpdates()
SCENEWIDTH = 800
SCENEHEIGHT =800
SCENERECT = pygame.sprite.Rect(0,0,SCENEWIDTH,SCENEHEIGHT)

CREATE_ENEMY_TIME = pygame.USEREVENT + 1